<li id="calendar">
<h2>{$moduleName}</h2>
<div id="calendar_wrap">
<table id="wp-calendar" summary="Calendar">
    <thead>
    <tr>
        <th>{$monday}</th>
        <th>{$tuesday}</th>
        <th>{$wednesday}</th>
        <th>{$thursday}</th>
        <th>{$friday}</th>
        <th>{$saturday}</th>
        <th>{$sunday}</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        {if $firstWeek}<td colspan="{$firstWeek}"></td>{/if}
        {section name=day start=1 loop=$lastDay+1}
        <td{if $today == $smarty.section.day.index} id="today"{/if}>
            {if isset($events[$smarty.section.day.index])}
            <a href="{$events[$smarty.section.day.index].link}" title="{$events[$smarty.section.day.index].title}">
            {/if}
            {$smarty.section.day.index}
            {if isset($events[$smarty.section.day.index])}
            </a>
            {/if}
        </td>
        {if ($smarty.section.day.index + $firstWeek) % 7 == 0}
    </tr>
    <tr>
        {/if}
        {/section}
    </tr>
    </tbody>
</table>
</div>
</li>